package model

import "engine/consts"

type QueryPermissionListRequest struct {
	Module consts.SystemModule `json:"module" form:"module" binding:"required"`
	PublicSearchData
}

type CreatePermissionRequest struct {
	Name   string              `json:"name" form:"name" binding:"required"`
	Module consts.SystemModule `json:"module" form:"module" binding:"required"`
}

type QueryRoleListRequest struct {
	Module consts.SystemModule `json:"module" form:"module" binding:"required"`
	PublicSearchData
}

type CreateRoleRequest struct {
	Name          string              `json:"name" form:"name" binding:"required"`
	Module        consts.SystemModule `json:"module" form:"module" binding:"required"`
	PermissionIds []uint64            `json:"permissionIds"`
}

type AssignRoleRequest struct {
	PermissionIds []uint64 `json:"permissionIds"`
}

type QueryRolesRequest struct {
	PublicSearchData
}
